ReactJS Ultra For Beginners
📁 Vite + React: Initial File Structure
When you run
npx create-vite .
you get:
my-app/ ├─ index.html ├─ package.json ├─ vite.config.js ├─ public/ │ └─ vite.svg └─ src/ ├─ main.jsx └─ App.jsx
🗂️ What Each File Does
-
index.html- The single HTML entry point
- Contains
<div id="root"></div>where React mounts
-
package.json- Lists dependencies (React, Vite, etc.)
- Defines scripts (
npm run dev,build,preview)
-
vite.config.js- Vite’s build/dev server settings
- Customize aliases, plugins, environment variables
-
src/main.jsximport React from "react"; import ReactDOM from "react-dom/client"; import App from "./App"; import "./index.css"; ReactDOM.createRoot(document.getElementById("root")).render( <React.StrictMode> <App /> </React.StrictMode> );- Bootstraps your React app
- Mounts
<App />into the DOM
-
src/App.jsximport React from "react"; export default function App() { return ( <div> <h1>Welcome to Vite + React!</h1> </div> ); }- Top-level component
- Your starting point for building UI
-
public/- Static assets served at root URL
- Any file here is copied as-is
111 / 111 videos100% complete
Course Completed!
Great job! You've finished all videos.
Welcome to the Course
Intro to The Course
3:33How to Learn This Course
3:02What is React and Why You Should Learn It?
4:14Getting Started with React
Installing Nodejs
3:03Setting up a React Development Environment
4:30VSCode Extensions
3:17JavaScript Refresher - All JS You Need To Know Before React
Functions
5:39Ternary and Logical Operators
7:21Objects and Arrays
7:11Map and Filter Functions
7:15Array Function Key Prop
3:13String Templating
4:27Basic React Concepts
React Project Folder Structure
6:55An Intro To JSX
10:33What is the App Component?
2:46How to use Components?
10:23Lists in React
9:45CSS in React
9:10